<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>v-on:keydown</title>
		<script src="js/vuejs-2.5.16.js"></script>
	</head>

	<body>
		<div id="app">
			<input type="text" @keyup.enter="fun">

		</div>
	</body>
	<script>
		//view model
		new Vue ({
			el:'#app',
			methods:{
			    fun:function (event) {
			        alert("开发破女")
                }
			}
		})
	</script>
	
	

</html>